﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace g2_Album_Info
{
    public partial class ImageInfoRequestForm : Form
    {
        public List<String> Albums { get; set; }
        public string SelectedAlbum { get; set; }

        public ImageInfoRequestForm()
        {
            InitializeComponent();
        }

        public void Fill()
        {
            albumListBox.Items.AddRange(Albums.ToArray());
        }

        private void goButton_Click(object sender, EventArgs e)
        {
            SelectedAlbum = albumListBox.SelectedItem.ToString();
            this.Close();
        }
    }
}
